package com.lz.nacos.common.constant;

import org.springframework.context.annotation.Configuration;

/**
 * 缓存的key 常量
 *
 * @author xpp
 */
@Configuration
public class CacheConstants
{


    /**
     * 登录用户 nacos key
     */
    public static final String LOGIN_TOKEN_KEY = "loginTokens:";

    /**
     * 验证码 nacos key
     */
    public static final String CAPTCHA_CODE_KEY =  "captchaCodes:";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY =  "sysConfig:";

     /**
     * 缓存管理 cache key
     */
    public static final String SYS_UNDERLYING_MARKET_KEY =  "instrument:";
    /**
     * 缓存管理 cache key
     */
    public static final String SYS_UNDERLYING_PRICING_KEY =  "instrumentPrice:";

    /**
     * 缓存管理 cache key
     */
    public static final String XPP_ALIVE_LOAD_CACHE_KEY =  "xpp:alive:";
    /**
     * 缓存管理 cache key
     */
    public static final String SYS_UNDERLYING_CTP_PRICING_KEY =  "instrumentCtpPrice:";
    /**
     * 缓存管理 cache key
     */
    public static final String SYS_CALC_LOG =  "calcLog:";
    /**
     * 缓存管理 cache key
     */
    public static final String SYS_REPORT_DATA_KEY =  "reportData:";

    /**
     * 缓存管理 cache key
     */
    public static final String TRADE_ACC_SECU_AUTH_KEY =  "accSecuByAuth:";
    /**
     * 缓存管理 cache key
     */
    public static final String TRADE_TRADER_KEY =  "trader:";
    /**
     * 缓存管理 cache key
     */
    public static final String TRADE_COUNTER_PARTY_KEY =  "counterParty:";
    /**
     * 缓存管理 cache key
     */
    public static final String SYS_URL_DATA_KEY =  "sysUrlData:";

    /**
     * 缓存管理 cache key
     */
    public static final String SYS_TABLE_MARKET_KEY =  "market-";
    /**
     * 字典管理 cache key
     * lzq at 2023.5.25:字典类SysDictData，不同项目结构不同，测试环境下容易出差，所以2.0加了个V2做区分
     */
    public static final String SYS_DICT_KEY =  "sysDict:v2:";

    /**
     * 防重提交 nacos key
     */
    public static final String REPEAT_SUBMIT_KEY =  "repeatSubmit:";

    /**
     * 限流 nacos key
     */
    public static final String RATE_LIMIT_KEY =  "rateLimit:";

    /**
     * 登录账户密码错误次数 nacos key
     */
    public static final String PWD_ERR_CNT_KEY =  "pwdErrCnt:";

    /**
     * 环境 nacos key
     */
    public static final String ENV_KEY =  "env:";
}
